package com.gulimall.product.feign;

import com.gulimall.common.utils.R;
import com.gulimall.product.fallback.SeckillFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author kkk
 * @date 2022/8/11
 */
@FeignClient(value = "gulimall-seckill", fallback = SeckillFeignFallback.class)
public interface SeckillFeignService {
    @GetMapping("/sekcillSku/{skuId}")
    R getSeckillBySkuId(@PathVariable Long skuId);
}
